#!/bin/bash

###############################

#测试脚本

###############################


set -x


function check()

{



echo "import pandas as pd" >> pandas_test.py
echo "print(pd.__version__)" >> pandas_test.py

version=`python pandas_test.py`

if [[ $version==0.24.2 ]];then # PLEASE CHANGE THIS CONDITION
echo "RETURN SUCCESS"

return

else

echo "RETURN FAILED" # DO NOT CHANGE THE ECHO VALUE
fi

}


# DO NOT CHANGE THE MAIN FUNCTION

function main()

{

ret=$(check)

if [[ $ret == *'RETURN SUCCESS' ]]; then

echo "test scripts success"

else

echo "test scripts failed"

fi

}

main



